import Home from '@/module/home/page/home.vue';
import PageList from '@/module/cms/page/page_list.vue';
import PageAdd from '@/module/cms/page/page_add.vue'
import PageEdit from '@/module/cms/page/page_edit.vue'
import TemplateList from '@/module/cms/page/template_list.vue'
import TemplateAdd from '@/module/cms/page/template_add.vue'
export default [{
    path: '/',
    component: Home,
    name: 'CMS',
    hidden: false,
    children:[
      {
        path: '/cms/page/list',
        name:'页面列表',
        component:PageList,
        hidden:false
      },
      {
        path: '/cms/page/add',
        name:'新增页面',
        component:PageAdd,
        hidden:true
      },
      {
        path: '/cms/page/edit/:pageId',
        name:'修改页面',
        component: PageEdit,
        hidden:true
      },
      {
        path: '/cms/template/list',
        name:'模版列表',
        component:TemplateList,
        hidden:false
      },
      {
        path: '/cms/template/add',
        name:'新增',
        component:TemplateAdd,
        hidden:true
      }
    ]
    // ,
    // redirect: '/home',
    // children: [
    //   {path: 'home', component: Home}
    // ]
  }/*,
  {
    path: '/login',
    component: Login,
    name: 'Login',
    hidden: true
  }*/
]
